package com.ee.bruscar.configuration.maker;

public class RandomUtil
{
	public static int getRandomNumber( int minimum, int maximum )
	{
		assert minimum <= maximum;
		
		if( minimum == maximum )
		{
			return minimum;
		}
		
		int diff = maximum - minimum;
		
		double random = Math.random();
		double multiplied = random * diff;
		
		Double dbl = new Double( multiplied );
		return dbl.intValue() + minimum;

	}
}
